// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:flutter_test/flutter_test.dart';

import 'package:projectsecond/main.dart';

void main() {
  testWidgets('展示查询表单与初始提示', (WidgetTester tester) async {
    await tester.pumpWidget(const GitCodePocketToolApp());

    expect(find.textContaining('输入关键字 + access token'), findsOneWidget);
    expect(find.text('搜索关键字'), findsOneWidget);
    expect(find.text('查询'), findsOneWidget);
  });
}

